package com.lhd.qd.module.system.role.model.converter;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lhd.qd.module.system.role.model.dataobj.RoleDO;
import com.lhd.qd.module.system.role.model.dto.RoleSaveDTO;
import com.lhd.qd.module.system.role.model.vo.RoleDetailVO;
import com.lhd.qd.module.system.role.model.vo.RoleListVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public abstract class AbstractRoleConverter {

    public static AbstractRoleConverter INSTANCE = Mappers.getMapper(AbstractRoleConverter.class);

    public abstract Page<RoleListVO> doPage2ListVOPage(IPage<RoleDO> doPage);

    public abstract RoleDetailVO do2DetailVO(RoleDO dataObj);

    public abstract RoleDO saveDTO2DO(RoleSaveDTO saveDTO);
}
